//转换表单 为  json
$.fn.serializeObject = function() {
	var o = {};
	var a = this.serializeArray();
	$.each(a, function() {
		if (o[this.name]) {
			if (!o[this.name].push) {
				o[this.name] = [ o[this.name] ];
			}
			o[this.name].push(this.value || '');
		} else {
			o[this.name] = this.value || '';
		}
	});
	return o;
};
// 转换表单 为 JavaScript 对象
function form2obj(jFormId) {
	var jsonuserinfo = $(jFormId).serializeObject();
	return eval("(" + JSON.stringify(jsonuserinfo) + ")");
}
// 将对象映射到 form 表单
function wrap_json(bean, json) {
	var end = {};
	for ( var pp in json) {
		end[bean + "." + pp] = json[pp];
	}
	return end;
}